.selectFieldWrapper {
  display: grid;
  grid-template-areas: 'label' 'select';
}

.selectStyle,
.selectFieldWrapper .MuiOutlinedInput-root {
  border-radius: var(--space-3xs);
  grid-area: select;
  width: 100%;
  height: 40px;
  background: var(--input-background);
  font-weight: normal;
  font-size: var(--text-md);
  color: var(--text-secondary);
  border: none;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(50% + 1px),
    calc(100% - 15px) calc(50% + 1px),
    calc(100% - 40px) 50%;
  background-size:
    5px 5px,
    5px 5px,
    1px 70%;
  background-repeat: no-repeat;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 100px;
}

.MuiPopover-root .MuiPaper-root {
  color: var(--text-secondary);
  background-color: var(--input-background);
}

.selectStyle {
  text-indent: 22px;
  padding-inline-end: 4rem;
  white-space: nowrap;
}

.selectFieldWrapper.isRTL .MuiOutlinedInput-root {
  background-position:
    calc(15px) calc(50% + 1px),
    calc(20px) calc(50% + 1px),
    calc(40px) 50%;
}

.selectFieldWrapper label {
  text-align: start;
  grid-area: label;
  align-self: center;
}

.selectFieldWrapper select:disabled {
  cursor: not-allowed;
}

.selectFieldWrapper.small select {
  width: clamp(150px, 10rem, 372px);
}

.selectFieldWrapper.smaller select {
  width: 66px;
  text-indent: 11px;
}

.selectFieldWrapper.small,
.selectFieldWrapper.smaller {
  grid-template-areas: 'select label';
  grid-template-columns: min-content 1fr;
}

.selectFieldWrapper.small label,
.selectFieldWrapper.smaller label {
  margin: 0px var(--space-md);
}

.selectFieldWrapper select > option {
  background: var(--navbar-background);
  height: 40px;
  color: var(--text-secondary);
  text-indent: 22px;
  font-size: var(--text-md);
  border-radius: 10px;
}

.selectFieldWrapper.rightButtons {
  grid-template: 'label label' 'select buttons';
  grid-template-columns: auto min-content;
  grid-column-gap: 0.5rem;
}

.selectFieldWrapper.rightButtons label {
  grid-area: label;
}

.selectFieldWrapper.rightButtons .rightButtons {
  grid-area: buttons;
  align-self: center;
}

.selectFieldWrapper.isRTL option {
  direction: rtl;
}

.selectFieldWrapper button {
  align-self: center;
  justify-self: center;
}
